﻿<div class="am-g" style="padding-bottom: .8rem;">
    <div class="am-u-md-3 am-padding-left-0">
        <select v-model="article_load_type" data-ignore>
            <option value="" selected>快速加载文章...</option>
            <option value="1">加载微信文章</option>
            <option value="2">加载网页文章</option>
            @*<option value="3">从Word加载文章</option>
                <option value="4">从PDF加载文章</option>*@
        </select>
    </div>
    <div class="am-u-md-9 am-padding-0 article-load-content" v-if="article_load_type">
        <div v-if="article_load_type==='1' || article_load_type==='2'" class="am-input-group am-padding-0" style="width:100%">
            <input type="text" ref="article_load_url" :placeholder="articleLoadPlaceholder" />
            <span class="am-input-group-btn">
                <i-button skin="primary" icon="cloud-download" :loading="loading" v-on:click="handleLoadArticle">加载</i-button>
            </span>
        </div>
        <Upload v-else name="article_load_file" :format="article_load_type==='3'?['doc','docx']:['pdf']" :max-size="10240" :max="1" type="custom" action="http://localhost:53106/upload">
            <i-button skin="primary" icon="icon-file" :loading="loading" style="width:100%">选择{{article_load_type==='3'?'Word':'PDF'}}文件...</i-button>
        </Upload>
    </div>
</div>